(function() {
	
this.pasta = this.pasta || {};
this.pasta.webgui = this.pasta.webgui || {};

this.pasta.webgui.Panel = pasta.webgui.ContainerControl.extend(
{
	init : function() 
	{
		this._super();
		
		this.bgImage = null;
		this.bgColor = null;
		
		this.borderColor = null;
	},

	close : function()
	{
		this.setVisible(false);
	},
	
	show : function()
	{
		this.setVisible(true);
	},
	
	setBgImage : function(data)
	{
		this.bgColor = null;
		this.bgImage = data;
		
		this.canvas.style.backgroundImage = "url(" + this.bgImage + ")";
	},
	
	setBgColor : function(data)
	{
		this.bgColor = data;
		this.bgImage = null;
		
		this.canvas.style.background = this.bgColor;
	},
	
	setBorderColor : function(data)
	{
		this.borderColor = data;
		
		if (data != null)
			this.canvas.style.border = "1px solid " + data;
		else
			this.canvas.style.border = "";
	},
	
	setShadow : function(data)
	{
		this.canvas.style.webkitBoxShadow = data;
		this.canvas.style.mozBoxShadow = data;
		this.canvas.style.boxShadow = data;
	},
	
	setBorderRadius : function(data)
	{
		this.canvas.style.mozBorderRadius = data + "px";
		this.canvas.style.webkitBorderRadius = data + "px";
		this.canvas.style.borderRadius = data + "px";
	},
});
	
})();
